//
//  HD_HSP_BroadcastDetail_ViewController.m
//  HDLiaoNingMeseum
//
//  Created by HDHaoShaoPeng on 2017/8/7.
//  Copyright © 2017年 HDNiuKuiming. All rights reserved.
//

#import "HD_HSP_BroadcastDetail_ViewController.h"

@interface HD_HSP_BroadcastDetail_ViewController ()

@property (weak, nonatomic) IBOutlet UIWebView *htmlView;

@end

static HDDeclare *declare;

@implementation HD_HSP_BroadcastDetail_ViewController

-(void)awakeFromNib
{
    [super awakeFromNib];
    declare = [HDDeclare sharedDeclare];
}
-(void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    [self reloadContent]; // 加载显示的内容
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    self.title = self.item.title;
}
- (void)reloadContent
{
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:self.item.html_path]];
    [self.htmlView loadRequest:request];
}

- (IBAction)backClicked:(id)sender {
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
}
- (void)dealloc
{
    self.htmlView = nil;
    self.item = nil;
}

@end
